package ace.module.oauth2.server.api.model.input;

import ace.module.oauth2.server.api.enums.Oauth2RegisteredClientAuthConfigAuthenticationTypeEnum;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * @author caspar
 * @date 2024/6/11 17:08
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class Oauth2AceAuthenticationInput<TParams extends Oauth2AceAuthParams> {

  /**
   * 认证方法
   * {@link Oauth2RegisteredClientAuthConfigAuthenticationTypeEnum}
   */
  @NotEmpty
  private String authType;

  /**
   * 认证参数
   */
  @Valid
  private TParams bizParams;


}
